import Loadable from 'react-loadable'
import Loading from '@/components/Loading'
// import Web from './web'

// 路由懒加载
// root.render(
//     <React.StrictMode>
//         <Web />
//     </React.StrictMode >
// )
const Web = Loadable({
    loader: () => import("./web"),
    loading: Loading,
})
const Login = Loadable({
    loader: () => import("./login"),
    loading: Loading,
})
const System = Loadable({
    loader: () => import("./system"),
    loading: Loading,
})
const Admin = Loadable({
    loader: () => import("./admin"),
    loading: Loading,
})
const NotFound = Loadable({
    loader: () => import("./notFound"),
    loading: Loading,
})
const User = Loadable({
    loader: () => import("./user/user"),
    loading: Loading,
})

const Role = Loadable({
    loader: () => import("./user/role"),
    loading: Loading,
})

const Individual = Loadable({
    loader: () => import("./individual"),
    loading: Loading,
});

const Equman = Loadable({
    loader: () => import("./equ/equman"),
    loading: Loading,
});

const Equtype = Loadable({
    loader: () => import("./equ/equtype"),
    loading: Loading,
});
const Equscrap = Loadable({
    loader: () => import("./equ/equscrap"),
    loading: Loading,
});
const Borrows = Loadable({
    loader: () => import("./borrow/borrows"),
    loading: Loading,
});
const Borrecord = Loadable({
    loader: () => import("./borrow/borrecord"),
    loading: Loading,
});
const Bormanage = Loadable({
    loader: () => import("./bormanage/bormanage"),
    loading: Loading,
});
const Borrecords = Loadable({
    loader: () => import("./bormanage/borrecords"),
    loading: Loading,
});

const Booked = Loadable({
    loader: () => import("./booked/bookeds"),
    loading: Loading,
});
const Bookedrecord = Loadable({
    loader: () => import("./booked/bookedrecord"),
    loading: Loading,
});
const Boomanage = Loadable({
    loader: () => import("./boomanage/boomanage"),
    loading: Loading,
});
const Boorecord = Loadable({
    loader: () => import("./boomanage/boorecord"),
    loading: Loading,
});
const team = Loadable({
    loader: () => import("./lab/overview/team"),
    loading: Loading,
});
const committee = Loadable({
    loader: () => import("./lab/overview/committee"),
    loading: Loading,
});
const personnel = Loadable({
    loader: () => import("./lab/overview/personnel"),
    loading: Loading,
});
const fixed = Loadable({
    loader: () => import("./lab/academicteam/fixed"),
    loading: Loading,
});
const flow = Loadable({
    loader: () => import("./lab/academicteam/flow"),
    loading: Loading,
});
const projects = Loadable({
    loader: () => import("./lab/construction/projects"),
    loading: Loading,
});
const finding = Loadable({
    loader: () => import("./lab/construction/finding"),
    loading: Loading,
});
const platform= Loadable({
    loader: () => import("./lab/platform"),
    loading: Loading,
});
const topic= Loadable({
    loader: () => import("./lab/communication/topic"),
    loading: Loading,
});
const visit= Loadable({
    loader: () => import("./lab/communication/visit"),
    loading: Loading,
});
const download= Loadable({
    loader: () => import("./lab/download"),
    loading: Loading,
});
const dynamics= Loadable({
    loader: () => import("./lab/Information/dynamics"),
    loading: Loading,
});
const rules= Loadable({
    loader: () => import("./lab/Information/Rules"),
    loading: Loading,
});
export {
    Web,
    Login,
    // Home,
    // Overview,
    System,
    Admin,
    NotFound,
    User,
    Role,
    Individual,
    Equman,
    Equtype,
    Equscrap,
    Booked,
    Bookedrecord,
    Borrows,
    Borrecord,
    Bormanage,
    Borrecords,
    Boomanage,
    Boorecord,
    // Opencommunication,
    team,
    committee,
    personnel,
    fixed,
    flow,
    projects,
    finding,
    platform,
    topic,
    visit,
    download,
    dynamics,
    rules

}
